import request from '@/utils/request'
//获取上级菜单
export const getParentApi = () => request.get('permissions/parent')
//新增
export const addApi = data => request.post('permissions', data)
export const getListApi = () => request.get('permissions')
//编辑
export const editApi = data => request.put('permissions', data)
//删除
export const deleteApi = id => request.delete(`permissions/${id}`)
